const request = (url, data?) =>
    new Promise((resolve) => {
        setTimeout(() => {
            return resolve({url, data})
        }, 500)
    })

export const getUserInfo = () => request('userApi/getUserInfo', {msg: 'ok', code: 0, data: {id: 1, name: '张三'}})

export const getUserLevel = () => request('userApi/getUserLevel', {msg: 'ok', code: 0, data: 1})
